<template>
Idea
<button @click="a">aaa</button>
</template>

<script setup>
import { ref,reactive } from 'vue'
function a(){
  alert("aaa");
}
</script>

<style scoped>

</style>